<?php
class Nganh extends CI_Controller {
    public $data;
    public function __construct()
    {
        parent::__construct();
        $this->load->model(array('m_baigiang','m_nganh','m_khoahoc'));
        $this->data = array (
            'nganh'       => $this->m_nganh->get_nganh(),
            'baigiang'    => true
        );
    }
    public function hienthinganh($id){
        $id = $this->uri->segment(3);
        $this->data['khoahoc']= $this->m_khoahoc->hienthinganhkhoahocid($id);
        $this->load->view('khoa/v_nganh',$this->data);
    }
}